package com.lannuokeji.biz.items.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 申请设备—相关设备
 * </p>
 *
 * @author lannuoTeck
 * @since 2018-03-19
 */
@TableName("g_items_device_apply_facility")
public class DeviceApplyFacility extends Model<DeviceApplyFacility> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 申请id
     */
    @TableField("applyId")
    private Integer applyId;
    /**
     * 设备id
     */
    @TableField("itemsId")
    private Integer itemsId;
    /**
     * 设备数量
     */
    private Integer count;
    /**
     * 借出时设备状态
     */
    private String sstatus;
    /**
     * 归还时设备状态
     */
    private String fstatus;
    /**
     * 备注信息
     */
    private String des;
    /**
     * 0：借出成功,  1：未借出，2：已借出
     */
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getApplyId() {
        return applyId;
    }

    public void setApplyId(Integer applyId) {
        this.applyId = applyId;
    }

    public Integer getItemsId() {
        return itemsId;
    }

    public void setItemsId(Integer itemsId) {
        this.itemsId = itemsId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getSstatus() {
        return sstatus;
    }

    public void setSstatus(String sstatus) {
        this.sstatus = sstatus;
    }

    public String getFstatus() {
        return fstatus;
    }

    public void setFstatus(String fstatus) {
        this.fstatus = fstatus;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeviceApplyFacility{" +
        ", id=" + id +
        ", applyId=" + applyId +
        ", itemsId=" + itemsId +
        ", count=" + count +
        ", sstatus=" + sstatus +
        ", fstatus=" + fstatus +
        ", des=" + des +
        ", status=" + status +
        "}";
    }
}
